 <?php use_helper('Form')?>
<?php if(sfConfig::get('app_form_transform_search')==true) use_helper('FormTransform')?> 
      
        
                    	<div class="search_quick_title">Quick Search</div>

                
                <form method="GET" <?php if(sfConfig::get('app_form_transform_search')==true) echo 'class="jqtransform"' ?> action="<?php echo url_for('@search')?>">

                    <div class="serch_item">
                    	<span><?php echo __('Nickname')?></span>
                        <?php echo input_tag('nick',sfContext::getInstance()->getRequest()->getParameter('nick'))?>
                       
                    </div>

                	<div class="serch_item">
                    	<span>I am looking for</span>
                        <?php echo select_tag('gender',options_for_select(array(''=>'-','m'=>__('Man'),'w'=>__('Woman'))),sfContext::getInstance()->getRequest()->getParameter('gender'))?>
                        <label class="with_photo" for="w_photo">with photos</label><input id="is_photo" type="checkbox" class="with_photo_input" />
                    </div>
                    

                    
                    <div id="age_block" class="serch_item">

                    	<span>Age from</span>
                          <?php echo select_tag('user_age[from]',options_for_select(sfContext::getInstance()->getUser()->getAge(),sfContext::getInstance()->getRequest()->getParameter('user_age[from]')))?>
                        <span class="age_tire">—</span>
                           <?php echo select_tag('user_age[to]',options_for_select(sfContext::getInstance()->getUser()->getAge(),sfContext::getInstance()->getRequest()->getParameter('user_age[to]')))?>
                        <input class="but_bg" type="submit" value="Go!" />
                    </div>
                    
                    
                    <div id="age_block" class="serch_item">

                    	<span>Height from</span>
                          <?php echo select_tag('user_height[from]',options_for_select(sfContext::getInstance()->getUser()->getRost(),sfContext::getInstance()->getRequest()->getParameter('user_height[from]')),'style="width:70px"')?>
                        <span class="age_tire">—</span>
                           <?php echo select_tag('user_height[to]',options_for_select(sfContext::getInstance()->getUser()->getRost(),sfContext::getInstance()->getRequest()->getParameter('user_height[to]')),'style="width:70px"')?>
                       <a href="<?php echo url_for('search/advform') ?>">Advanced search</a>
                    </div>
                    
                    
                   
                </form>
                